package LeetCode;

public class NewCoder_NC141 {
    public boolean judge (String str) {
       int left=0;
       int right=str.length()-1;
        while (left<right){
            if(str.charAt(left)!=str.charAt(right)){
                return false;
            }
            left++;
            right--;
        }
        return true;
    }
}
